$(document).ready(function() { 
	 $('form').submit(function() {
		 $(".error").hide();
		 if($("#factors_id").val() != null && $("#fromDt").val() != "" && $("#toDt").val() != ""){
			 return true;
		 }
		else{
			$("#validation")
			.after(
					'<span class="error" style="color: red">Please choose atleast one value in all fields.</span>');
			return false;	 		
	 	}
	 });	 
});